package com.hf.security

class FileManagerController {
	
	def grailsApplication

	def downloadFile() {
		def file = grailsApplication.mainContext.getResource('file/OrderLunchGuide.doc').file

		if (file.exists()) {
		   response.setContentType("application/octet-stream")
		   response.setHeader("Content-disposition", "filename=${file.name}")
		   response.outputStream << file.bytes
		   return
		}
	}
}
